<h1>Listing teams</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Logo</th>
    <th>Points</th>
    <th>Wins</th>
    <th>Losses</th>
    <th>Otl</th>
    <th>Shots</th>
    <th>Ppg</th>
    <th>User</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @teams.each do |team| %>
  <tr>
    <td><%= team.name %></td>
    <td><%= team.logo %></td>
    <td><%= team.points %></td>
    <td><%= team.wins %></td>
    <td><%= team.losses %></td>
    <td><%= team.otl %></td>
    <td><%= team.shots %></td>
    <td><%= team.ppg %></td>
    <td><%= team.user_id %></td>
    <td><%= link_to 'Show', team %></td>
    <td><%= link_to 'Edit', edit_team_path(team) %></td>
    <td><%= link_to 'Destroy', team, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Team', new_team_path %>
